/*****************************************************************************
*        描述 :
*             文件描述
*        CLR版本:            3.5
*        创建者 :            蒋 光
*        个人域名:           jiangguang.net.cn
*        命名空间名称:       ECP.Interface
*        文件名:             IMessageService.cs
*        创建系统时间:       2012/11/2 19:07:01
*        创建年份:           2012
*
/*****************************************************************************/

namespace ECP.Interface
{
    using System.Data;
    using System.ServiceModel;
    using ECP.Utilities;

    [ServiceContract(Namespace = "http://jiangguang.net.cn/"), XmlSerializerFormat]
    public interface IMessageService
    {
        [OperationContract]
        int BatchSend(BaseUserInfo userInfo, string[] receiverIDs, string[] organizeIDs, string[] roleIDs, string content);

        [OperationContract]
        DataTable GetInnerOrganize(BaseUserInfo userInfo);

        [OperationContract]
        DataTable GetNewList(BaseUserInfo userInfo);

        [OperationContract]
        void Load();

        [OperationContract]
        string[] MessageChek(BaseUserInfo userInfo, string lastChekDate);

        [OperationContract]
        void Read(BaseUserInfo userInfo, string id);

        [OperationContract]
        DataTable ReadFromReceiver(BaseUserInfo userInfo, string receiverID);

        [OperationContract]
        string Send(BaseUserInfo userInfo, string receiverID, string content);
    }
}